package com.smartleanx.module.hrm.service.esign.temp.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * e签报模板参与者
 *
 * @author dongbidongxin
 * @since 2025-07-07 15:56:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "e签报模板参与者")
@TableName("hrm_e_contract_temp_actors")
public class HrmEContractTempActors implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "数据类型 0/删除 1/正常")
    @TableField(value = "data_status", fill = FieldFill.INSERT)
    private Integer dataStatus;

    @Schema(description = "模板id")
    @TableField("temp_id")
    private Long tempId;

    @Schema(description = "参与方标识")
    @TableField("actor_id")
    private String actorId;

    @Schema(description = "参与方名称")
    @TableField("actor_name")
    private String actorName;

    @Schema(description = "参与方主体类型 1/企业 2/个人")
    @TableField("actor_type")
    private String actorType;


    @Schema(description = "参与方填写权限 0/没有 1/有")
    @TableField("actor_fill_in_permission")
    private String actorFillInPermission;

    @Schema(description = "参与方签署权限 0/没有 1/有")
    @TableField("actor_sign_permission")
    private String actorSignPermission;

    @Schema(description = "签署顺序 数字越小 优先级越高")
    @TableField("actor_sign_sort")
    private Integer actorSignSort;

    @Schema(description = "填写顺序  数字越小 优先级越高")
    @TableField("actor_fill_in_sort")
    private Integer actorFillInSort;

    @Schema(description = "租户id")
    @TableField("tenant_id")
    private Long tenantId;

    @Schema(description = "创建者")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "修改者")
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @Schema(description = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

}
